package fi.bluepill.osm;


import org.java.plugin.Plugin;
import org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory;
import org.openstreetmap.osmosis.core.plugin.PluginLoader;

import java.util.HashMap;
import java.util.Map;

public class MyPluginLoader extends Plugin implements PluginLoader {

    @Override
    protected void doStart() throws Exception {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    protected void doStop() throws Exception {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public Map<String, TaskManagerFactory> loadTaskFactories() {
        Map<String, TaskManagerFactory> plugins = new HashMap<String, TaskManagerFactory>();
        plugins.put("bluepill/writeLocations", new MyTaskFactory());
        return plugins;
    }
}
